From: Marc-Antoine Perennou Date: Fri, 8 Jul 2011 19:09:10 +0000 (+0200) Subject: PopupSwitchMenuItem: don't override switch by creating it twice X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8089 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6d53d43766ba83642b065ad8637cfb149af096db;p=gnome-shell.git PopupSwitchMenuItem: don't override switch by creating it twice Due to an accidental addition line in commit c8670819, all switches in popup menus accidentally gave the appearance that they were turned off. Signed-off-by: Marc-Antoine Perennou https://bugzilla.gnome.org/show_bug.cgi?id=654267 --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 3d854ef7d..e67729cb5 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -711,7 +711,6 @@ PopupSwitchMenuItem.prototype = { this._statusLabel = new St.Label({ text: '', style_class: 'popup-inactive-menu-item' }); - this._switch = new Switch(false); this._statusBin.child = this._switch.actor; },